import { Component, OnInit, Input  } from '@angular/core';

@Component({
  selector: 'app-count-to',
  templateUrl: './count-to.component.html',
  styleUrls: ['./count-to.component.scss']
})
export class CountToComponent implements OnInit {
  // 父组件绑定，子组件用input()接收
  @Input() value: number | undefined
  constructor() { }

  ngOnInit(): void {
    console.log(this.value,'msg');
    
  }

}
